/**
 * 点击添加用户按钮
 */
var group;
if (!group) {
    group = {}
}

bindClick("#addAdmin", function () {
    showModel("addAdmin-div", function () {
    });
});

//提交表单后回调
var saveAdmin = function (data) {
    var d = JSON.parse(data);
    console.log(d);
}

bindClick("#deleteAdmin", function () {
    comment.showOperationTips("确定删除吗？", function () {
        var rowid = $("#id").val();
        $.post($().AbsUrlParse('/web/pushmsg/group/deleteGroup'), {
            kid: rowid
        }, function (data) {
            if (data.state == true) {
                if (data.res.code == 40000) {
                    hint("删除成功");
                    comment.refresh();
                    closeModel("editAdmin-div");
                } else {
                    hint(data.res.msg);
                }
            } else {
                hint(data.msg);
            }
        });
    });
});


group.editAdminShow = function (row, formid) {
    setRowToFrm(formid, row);
    return false;
}